home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmTools
- BorderStyle = 3 'Fixed Dialog
- Caption = "Remote System Tools"
- ClientHeight = 1695
- ClientLeft = 45
- ClientTop = 420
- ClientWidth = 4020
- Icon = "frmTools.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1695
- ScaleWidth = 4020
- ShowInTaskbar = 0 'False
- StartUpPosition = 1 'CenterOwner
- WhatsThisButton = -1 'True
- WhatsThisHelp = -1 'True
- Begin VB.Frame fraSession
- Caption = "Affect Remote Session:"
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 1605
- Left = 45
- TabIndex = 0
- Tag = "2"
- Top = 60
- Width = 3930
- Begin VB.CommandButton cmdExit
- Cancel = -1 'True
- Caption = "&Cancel"
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 390
- Left = 2835
- TabIndex = 5
- Top = 1080
- Width = 960
- End
- Begin VB.CommandButton cmdExecute
- Caption = "&Execute"
- Default = -1 'True
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 390
- Left = 1755
- TabIndex = 4
- Top = 1080
- Width = 1020
- End
- Begin VB.OptionButton optSession
- Caption = "Force the remote computer to shut down."
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 225
- Index = 2
- Left = 180
- TabIndex = 3
- Top = 765
- Value = -1 'True
- Width = 3375
- End
- Begin VB.OptionButton optSession
- Caption = "Force the remote computer to reboot."
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 225
- Index = 1
- Left = 180
- TabIndex = 2
- Top = 540
- Width = 3375
- End
- Begin VB.OptionButton optSession
- Caption = "Force RemoteHost to log off current user."
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 225
- Index = 0
- Left = 180
- TabIndex = 1
- Top = 315
- Width = 3375
- End
- Begin VB.Image Image1
- Height = 480
- Left = 135
- Picture = "frmTools.frx":000C
- Top = 1035
- Width = 480
- End
- End
- Attribute VB_Name = "frmTools"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdExecute_Click()
- On Error GoTo hell
- Dim iResult As Integer
- iResult = MsgBox(Warning, vbExclamation + vbYesNoCancel, "Affect Remote Session")
- If iResult = vbYes Then
- Select Case fraSession.Tag
- Case 0
- frmConnection.objTCP.SendData "|LOG_OFF_CURRENT_USER|"
- Case 1
- frmConnection.objTCP.SendData "|REBOOT_COMPUTER|"
- Case 2
- frmConnection.objTCP.SendData "|PULL_THE_PLUG|"
- End Select
- ElseIf iResult = vbCancel Then
- Unload Me
- End If
- Exit Sub
- hell:
- MsgBox Error & ".", vbExclamation, "Error"
- End Sub
- Private Sub cmdExit_Click()
- Unload Me
- End Sub
- Private Sub optSession_Click(Index As Integer)
- Me.fraSession.Tag = Index
- End Sub
-